package com.itheima.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther LCSlove
 * @Date 2021-09-09 1:02
 */
@RestController
@RequestMapping("/test")
@RefreshScope
public class TestController {
    @Value("${address}")
    private String address;

    @RequestMapping(value = "/getInfo", method = RequestMethod.GET)
    public String getInfo() {
        return address;
    }
}
